package com.googlecode.vmock.exceptions;

import com.googlecode.vmock.VMock;

/**
 * Thrown whenever {@link VMock#expect(Object)} or {@link VMock#expectLastCall()} has been called, but there has been no call that could be mocked.
 * Possible reasons are:
 * <ul>
 * <li>Broken AspectJ configuration ie. interception aspect has not been woven into any class.</li>
 * <li>End-user tried to mock a call to the method in <code>com.googlecode.vmock</code> or <code>java.lang</code> package which is not possible due to
 * security concerns.</li>
 * </ul>
 * 
 * @author marcin.jagus
 */
public class NoCallToMockException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * Creates new exception with a given message string.
     * 
     * @param message
     */
    public NoCallToMockException(String message) {
        super(message);
    }
}
